package strategy_tasarim_mat_islem;

public class Test {
	
	public static void main(String[] args) {
		
		Context context;
		
		context = new Context(new Add());		
		int toplam = context.executeStrategy(5,4);
		
		context = new Context(new Subtract());
		int cikartma = context.executeStrategy(5,4);
         
		context = new Context(new Multiply());
	    int carpma = context.executeStrategy(5,4);
	 
	    System.out.println("Toplama : " + toplam);
	    System.out.println("Cikarma : " + cikartma);
	    System.out.println("Carpma  : " + carpma);
	}

}
